import request from '@/common/ability/request'
// 上传图片
export const uploadImg = (data) => {
  return request.post('/fileUpload', data)
}
export const DICT = (lxjp) => {
  return request.mock(`mock/approvalState.json?type=${lxjp}`)
}

export const Meet = () => {
  return request.mock(`mock/data.json`)
}

// 退出登录
export const webloginout = () => {
  return request.post(`/webloginout`)
}

// 查询当前用户的区划信息
export const getCurrentUserArea = () => {
  return request.post(`person/getCurrentUserArea`)
}
// 查询父级区划
export const getParentArea = (data) => {
  return request.post(`person/getParentArea`, data)
}

// 查询子级区划列表
export const querySubArea = (data) => {
  return request.post(`person/querySubArea`, data)
}
